|
Usage |
compile_to_jvm [options] <Root-Class> [<Root-Procedure>]
Command compile_to_jvm is the SmallEiffel Java byte code generator for the Java Virtual Machine.
Command compile_to_jvm must have at least one argument to indicate the starting execution point of the system.
Thus, execution will start in <Root-Procedure> of <Root-Class>. The default <Root-Procedure> is make.
Options to select Eiffel compilation modes |
As for command compile_to_c there are 8 different compilation
modes : -boost, -no_check, -require_check, -ensure_check,
-invariant_check, -loop_check and -all_check.
Options have the same meaning as for compile_to_c. See
compile_to_c
documentation for details.
Other options |
The SmallEiffelRuntime.java class |
The SmallEiffelRuntime.java
class implements some low level
external features.
This file is in the directory SmallEiffel/sys/runtime
.
The file SmallEiffelRuntime.class
must be present to execute
the Java byte-code generated by command compile_to_jvm.
Do not forget to add this class in your Java CLASSPATH system
environment variable.
You can also copy the file SmallEiffelRuntime.class
in some
appropriate directory.
Examples |
Example 1
When SmallEiffel is correctly installed, you can simply type
the following command to test the hello world program :
Example 2
As for command compile_to_c you can add the option -boost to avoid
all assertions checks :
Example 3
To change the name of the output main class, you have to add the
option -o :
Example 4
Finally, the -verbose option may be useful to check what files
are loaded, what files are created, or to fix some installation
problem :